package com.ruoyi.xuexiao.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.xuexiao.domain.param.KsOsgbPageParam;
import com.ruoyi.xuexiao.domain.vo.KsOsgbPageVo;
import com.ruoyi.xuexiao.service.KsOsgbService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 倾斜影像功能模块
 *
 * @author: Gao Tianle
 * @date: 2024-05-27 10:35
 **/
@Api(tags = "斜影像功能模块")
@AllArgsConstructor
@RestController
@RequestMapping("ksOsgb")
public class KsOsgbController extends BaseController {

    /**
     * 倾斜影像Service层
     */
    private final KsOsgbService ksOsgbService;

    /**
     * 倾斜影像分页查询
     * @param param 倾斜影像分页查询条件
     * @return
     * @author Gao Tianle
     * @date 2024/5/27 10:37
     */
    @ApiOperation("倾斜影像分页查询")
    @PostMapping("/ksOsgbPage")
    public TableDataInfo<KsOsgbPageVo> ksOsgbPage(@RequestBody KsOsgbPageParam param){
        IPage<KsOsgbPageVo> page = ksOsgbService.ksOsgbPage(param);
        return getDataTableByPage(page);
    }
}
